
export default () => {
  const formSize = ref( "default" );

  // 表单数据
  const ruleForm = reactive( {
    username: "admin",
    password: "123456",
  } );

  // 验证规则
  const rules = reactive( {
    username: [
      {
        required: true,
        message: "Please input Activity name",
        trigger: "blur",
      },
      { min: 3, max: 5, message: "Length should be 3 to 5", trigger: "blur" },
    ],
    password: [
      {
        required: true,
        message: "Please input Activity name",
        trigger: "blur",
      },
      { min: 4, max: 8, message: "Length should be 4 to 8", trigger: "blur" },
    ],
  } );


  return {
    formSize,
    ruleForm,
    rules,

  }
}